-----------------------------------	
-- Area: Western Altepa Desert	
-- MOB:  Cactuar	
-- Note: Place holder for Cactuar_Cantautor
-----------------------------------	
	
require("/scripts/globals/fieldsofvalor");	
require("scripts/zones/Western_Altepa_Desert/MobIDs");
  
-----------------------------------	
-- onMobDeath	
-----------------------------------	
	
function onMobDeath(mob,killer)	
	checkRegime(killer,mob,136,2);
  
  mob = mob:getID();
  if (Cactuar_Cantautor_PH[mob] ~= nil) then
  
    ToD = GetServerVariable("[POP]Cactuar_Cantautor");
    if (ToD <= os.time(t) and GetMobAction(Cactuar_Cantautor) == 0) then
      if (math.random((1),(20)) == 5) then
        UpdateNMSpawnPoint(Cactuar_Cantautor);
        SpawnMob(Cactuar_Cantautor, "", GetMobRespawnTime(mob));
        SetServerVariable("[PH]Cactuar_Cantautor", mob);
        DeterMob(mob, true);
      end
    end
  end
  
end;	
